home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20020314-20021006
/
000265_fdc@columbia.edu_Tue Aug 6 10:29:31 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
52 lines
Article: 13585 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.unix.programmer,comp.protocols.kermit.misc
Subject: Re: connecting to MD110 with tip
Date: 6 Aug 2002 10:24:01 -0400
Organization: Columbia University
Lines: 35
Message-ID: <aiom61$gi6$1@watsol.cc.columbia.edu>
References: <f8c38141.0208060547.2a67ad69@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1028643845 25010 128.59.39.139 (6 Aug 2002 14:24:05 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 6 Aug 2002 14:24:05 GMT
Xref: newsmaster.cc.columbia.edu comp.unix.programmer:150025 comp.protocols.kermit.misc:13585
In article <f8c38141.0208060547.2a67ad69@posting.google.com>,
Adam Atkinson <ghira@mistral.co.uk> wrote:
: I'm trying to write an expect script to connect to an MD110
: PABX and get logging information from it.
:
: I do "spawn tip modem" and am able to get into the tracker
: modem attached to the MD110, and put it in talkthrough mode.
:
: At this point, I'm supposed to send a bunch of Ss and a semicolon.
:
: On a telnet connection to suitably equipped MD110, this works.
:
: Via dial-up, it doesn't. It doesn't work when I use tip
: by hand either.
:
: What am I doing wrong?
:
Suggest you use C-Kermit to replace Telnet, Tip, and Expect:
http://www.columbia.edu/kermit/ckermit.html
Then you don't have to worry about interaction among three different
programs, and the fact that you have one program for network connections
but another one for serial connections.
Maybe there is some kind of coordination between input and output
that you are missing. In situations like this, it is often necessary
to wait for a prompt before issuing a command; not all devices buffer
up typeahead. The Telnet connection might have disguised this.
Start by reading the Kermit scripting tutorial:
http://www.columbia.edu/kermit/ckscripts.html
- Frank